<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateHorarioUsuarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateHorarioUsuarioLabel_idHorarioUsuario}" for="idHorarioUsuario" />
                    <h:inputText id="idHorarioUsuario" value="#{horarioUsuarioController.selected.idHorarioUsuario}" title="#{bundle.CreateHorarioUsuarioTitle_idHorarioUsuario}" required="true" requiredMessage="#{bundle.CreateHorarioUsuarioRequiredMessage_idHorarioUsuario}"/>
                    <h:outputLabel value="#{bundle.CreateHorarioUsuarioLabel_dia}" for="dia" />
                    <h:inputText id="dia" value="#{horarioUsuarioController.selected.dia}" title="#{bundle.CreateHorarioUsuarioTitle_dia}" />
                    <h:outputLabel value="#{bundle.CreateHorarioUsuarioLabel_horaEntrada}" for="horaEntrada" />
                    <h:inputText id="horaEntrada" value="#{horarioUsuarioController.selected.horaEntrada}" title="#{bundle.CreateHorarioUsuarioTitle_horaEntrada}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateHorarioUsuarioLabel_horaSalida}" for="horaSalida" />
                    <h:inputText id="horaSalida" value="#{horarioUsuarioController.selected.horaSalida}" title="#{bundle.CreateHorarioUsuarioTitle_horaSalida}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateHorarioUsuarioLabel_registroHorario}" for="registroHorario" />
                    <h:selectOneMenu id="registroHorario" value="#{horarioUsuarioController.selected.registroHorario}" title="#{bundle.CreateHorarioUsuarioTitle_registroHorario}" >
                        <f:selectItems value="#{registroHorarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{horarioUsuarioController.create}" value="#{bundle.CreateHorarioUsuarioSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{horarioUsuarioController.prepareList}" value="#{bundle.CreateHorarioUsuarioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateHorarioUsuarioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
